import request from "@/utils/request";

// 获取医患关系
export function getDPRecord(data) {
  return request({
    url: `/api/DoctorPatientRecord/list`,
    method: "post",
    data,
  });
}

// 删除医患关系
export function removeDPRecord(recordId) {
  return request({
    url: `/api/DoctorPatientRecord/${recordId}`,
    method: "delete",
  });
}

// 新增医患关系
export function addDPRecord(data) {
  return request({
    url: "/api/DoctorPatientRecord/add",
    method: "post",
    data,
  });
}

// 更新医患关系
export function updateDPRecord(data) {
  return request({
    url: "/api/DoctorPatientRecord/update",
    method: "post",
    data,
  });
}
